package com.film.financial.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.film.financial.mapper.BudgetMapper;
import com.film.financial.domain.Budget;
import com.film.financial.service.IBudgetService;

/**
 * 预算编制Service业务层处理
 * 
 * *@author fy
 * @date 2025-02-17
 */
@Service
public class BudgetServiceImpl implements IBudgetService 
{
    @Autowired
    private BudgetMapper budgetMapper;

    /**
     * 查询预算编制
     * 
     * @param id 预算编制主键
     * @return 预算编制
     */
    @Override
    public Budget selectBudgetById(Long id)
    {
        return budgetMapper.selectBudgetById(id);
    }

    /**
     * 查询预算编制列表
     * 
     * @param budget 预算编制
     * @return 预算编制
     */
    @Override
    public List<Budget> selectBudgetList(Budget budget)
    {
        return budgetMapper.selectBudgetList(budget);
    }

    /**
     * 新增预算编制
     * 
     * @param budget 预算编制
     * @return 结果
     */
    @Override
    public int insertBudget(Budget budget)
    {
        return budgetMapper.insertBudget(budget);
    }

    /**
     * 修改预算编制
     * 
     * @param budget 预算编制
     * @return 结果
     */
    @Override
    public int updateBudget(Budget budget)
    {
        return budgetMapper.updateBudget(budget);
    }

    /**
     * 批量删除预算编制
     * 
     * @param ids 需要删除的预算编制主键
     * @return 结果
     */
    @Override
    public int deleteBudgetByIds(Long[] ids)
    {
        return budgetMapper.deleteBudgetByIds(ids);
    }

    /**
     * 删除预算编制信息
     * 
     * @param id 预算编制主键
     * @return 结果
     */
    @Override
    public int deleteBudgetById(Long id)
    {
        return budgetMapper.deleteBudgetById(id);
    }
}
